package com.zc.trendsDispatch.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zc.trendsDispatch.mapper.ChargeStationCollectionMapper;
import com.zc.trendsDispatch.domain.ChargeStationCollection;
import com.zc.trendsDispatch.service.IChargeStationCollectionService;

/**
 * 场站历史功率数据Service业务层处理
 *
 * @author ruoyi
 * @date 2024-05-10
 */
@Service
public class ChargeStationCollectionServiceImpl implements IChargeStationCollectionService
{
    @Autowired
    private ChargeStationCollectionMapper chargeStationCollectionMapper;

    /**
     * 查询场站历史功率数据
     *
     * @param id 场站历史功率数据主键
     * @return 场站历史功率数据
     */
    @Override
    public ChargeStationCollection selectChargeStationCollectionById(Long id)
    {
        return chargeStationCollectionMapper.selectChargeStationCollectionById(id);
    }

    /**
     * 查询场站历史功率数据列表
     *
     * @param chargeStationCollection 场站历史功率数据
     * @return 场站历史功率数据
     */
    @Override
    public List<ChargeStationCollection> selectChargeStationCollectionList(ChargeStationCollection chargeStationCollection)
    {
        return chargeStationCollectionMapper.selectChargeStationCollectionList(chargeStationCollection);
    }

    /**
     * 新增场站历史功率数据
     *
     * @param chargeStationCollection 场站历史功率数据
     * @return 结果
     */
    @Override
    public int insertChargeStationCollection(ChargeStationCollection chargeStationCollection)
    {
        return chargeStationCollectionMapper.insertChargeStationCollection(chargeStationCollection);
    }

    /**
     * 修改场站历史功率数据
     *
     * @param chargeStationCollection 场站历史功率数据
     * @return 结果
     */
    @Override
    public int updateChargeStationCollection(ChargeStationCollection chargeStationCollection)
    {
        return chargeStationCollectionMapper.updateChargeStationCollection(chargeStationCollection);
    }

    /**
     * 批量删除场站历史功率数据
     *
     * @param ids 需要删除的场站历史功率数据主键
     * @return 结果
     */
    @Override
    public int deleteChargeStationCollectionByIds(Long[] ids)
    {
        return chargeStationCollectionMapper.deleteChargeStationCollectionByIds(ids);
    }

    /**
     * 删除场站历史功率数据信息
     *
     * @param id 场站历史功率数据主键
     * @return 结果
     */
    @Override
    public int deleteChargeStationCollectionById(Long id)
    {
        return chargeStationCollectionMapper.deleteChargeStationCollectionById(id);
    }
}
